package xyz.msj.hrm.domain;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author mushengjie
 * @since 2020-09-18
 */
@TableName("t_order_course_promotion_detail")
public class OrderCoursePromotionDetail extends Model<OrderCoursePromotionDetail> {

    private static final long serialVersionUID = 1L;

    private Long id;
    /**
     * 订单ID
     */
    @TableField("order_course_promotion_id")
    private Long orderCoursePromotionId;
    /**
     * 促销课程ID
     */
    @TableField("course_promotion_id")
    private Long coursePromotionId;
    /**
     * 订单支付价格
     */
    private Float price;
    /**
     * 购买的课程数量，固定 1
     */
    private Integer number;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getOrderCoursePromotionId() {
        return orderCoursePromotionId;
    }

    public void setOrderCoursePromotionId(Long orderCoursePromotionId) {
        this.orderCoursePromotionId = orderCoursePromotionId;
    }

    public Long getCoursePromotionId() {
        return coursePromotionId;
    }

    public void setCoursePromotionId(Long coursePromotionId) {
        this.coursePromotionId = coursePromotionId;
    }

    public Float getPrice() {
        return price;
    }

    public void setPrice(Float price) {
        this.price = price;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "OrderCoursePromotionDetail{" +
        ", id=" + id +
        ", orderCoursePromotionId=" + orderCoursePromotionId +
        ", coursePromotionId=" + coursePromotionId +
        ", price=" + price +
        ", number=" + number +
        "}";
    }
}
